package com.lb.design.pattern.facadepattern;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: liubin
 * Date: 2018-01-03
 * Time: 下午 2:57
 */
public class LetterOffice {

    private static LetterProcess letterProcess = new LetterProcessImpl();


    public static void sendLetterService(String content,String address){


        letterProcess.writeLetter(content);

        letterProcess.writeEnvelope(address);

        letterProcess.putLetterIntoEnvlope();

        letterProcess.sendLetter();
    }
}
